package com.hnevc.giteedemo;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;

public class MainActivity extends AppCompatActivity {
    Button mBtnLogin;
    EditText mEtusername;
    EditText mEtuserpassword;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        mBtnLogin= (Button)findViewById(R.id._btn_login);
        mEtuserpassword=(EditText) findViewById(R.id.id_et_userpassword);
        mEtusername=(EditText)findViewById(R.id._et_username);

        mBtnLogin.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
              String username = mEtusername.getText().toString();
              String userpassword=mEtuserpassword.getText().toString();
              new  Thread(new Runnable() {
                  @Override
                  public void run() {

                  }
              })  .start();
            }
        });
    }
}
